package sp.service.impl;

import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import sp.dao.user.RoleDao;
import sp.service.RoleService;

@Service("roleService")
public class RoleServiceImpl implements RoleService{

	@Autowired
	private RoleDao roleDao;

	@Override
	public Set<String> findRoles(Integer... rid) throws Exception {
		return roleDao.findRoles(rid);
	}

	@Override
	public Set<String> findPermission(Integer... rid) throws Exception {
		return roleDao.findPermission(rid);
	}

	

}
